﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Keleyi.Com.IDAL;
using Keleyi.Com.Model;

namespace Keleyi.Com.KBLL
{
    public class Message
    {
        private static readonly IMessage dal = Keleyi.Com.DALFactory.DataAccess.CreateMessage();

        public string Add(string title, string content, string email, string qq)
        {
            return dal.Add(title, content, email, qq);
        }

        public IList<MessageInfo> GetList()
        {
            return dal.GetList();
        }

        public IList<MessageInfo> GetListInside()
        {
            return dal.GetListInside();
        }

        public bool TurnIsShow(int id, bool isshow)
        {
            return dal.TurnIsShow(id, isshow);
        }
    }
}